/**
 * Created by justao on 7/3/14.
 */

'use strict';

const TITLES = {
  TALKS: '亲友团',
  PLANS: '行程',
  ME: '我',
  WELCOME: '欢迎',
  HISTORY: '以往活动',
  CONTACTS: '好友',
  SETTING: '个性化',
  FEEDBACK: '吐槽、建议',
};

export function tabKeyTitleMap(tabKey) {
  switch (tabKey) {
    case 'Talks':
      return TITLES.TALKS;
    case 'Plans':
      return TITLES.PLANS;
    case 'Me':
      return TITLES.ME;
  }
}

export function stateTypeTitleMap(pageState) {
  switch (pageState.type) {
    case 'HomePage':
      return TITLES.TALKS;
    case 'PlansPage':
      return TITLES.PLANS;
    case 'MePage':
      return TITLES.ME;
    case 'WelcomePage':
      return TITLES.WELCOME;
    case 'HistoryPage':
      return TITLES.HISTORY;
     case 'ContactsPage':
       return TITLES.CONTACTS;
     case 'SettingPage':
       return TITLES.SETTING;
     case 'FeedbackPage':
       return TITLES.FEEDBACK; 
  }
}